<?php	

	add_filter('cv_init_options', 'theme_init_options');
	
	function theme_init_options($opt) {	
	
		$pages = cv_pages();
		$entries_amount = array("Select a number:","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16");
		$categories = cv_categories();		
		
		
		$slides = unserialize(get_option('layerslider-slides')); 
		
		// Homepage Settings
		$opt[] = array( "name" => __("Home settings", hybrid_get_textdomain()),
							"type" => "heading");						

		$opt[] = array( "name" => "Hello Colorvila",
							"desc" => "",
							"id" => "theme_intro",
							"std" => __("<h3 style=\"margin: 0 0 10px;\">Welcome to Meters options panel.</h3>
										Meters is a mashable.com like technology News WordPress theme. This powerful theme will transform your website into a high-tech News/Magazine site. Responsive design makes the theme adaptive to all the devices(PC, iPad, iPhone, Android devices...). Meters features custom widgets, social media, shortcodes, portfolio, theme options, popular articles and many more. Three different color schemes and a team page templates. If you want to learn how to setup these options or just need general help on using it feel free to visit our site at <a href=\"http://www.colorvila.com/\">colorvila.com</a>", hybrid_get_textdomain()),							
							"icon" => true,
							"type" => "info");	
		
		$opt[] = array( "name" => __("Top banner notice", hybrid_get_textdomain()),
							"desc" => __('Input the notice in top banner, can be html or anything else.', hybrid_get_textdomain()),
							"id" => "top_banner_notice",
							"std" => '',
							"type" => "textarea"); 	
							
		$opt[] = array( "name" => __("Featured tags(Manual input)", hybrid_get_textdomain()),
							"desc" => __('Input the tags seperated by ","', hybrid_get_textdomain()),
							"id" => "featured_tags",
							"std" => '',
							"type" => "textarea"); 	
							
		$opt[] = array( "name" => __("Homepage trending story title", hybrid_get_textdomain()),
							"desc" => __("Input the title of trending story on homepage.", hybrid_get_textdomain()),
							"id" => "trendingstory_title",
							"std" => "TRENDING STORY",
							"type" => "text"); 
							
		$opt[] = array( "name" => __("Category featured story title", hybrid_get_textdomain()),
							"desc" => __("Input the title of featured story on category.", hybrid_get_textdomain()),
							"id" => "featuredstory_title",
							"std" => "FEATURED STORY",
							"type" => "text"); 		

		
		$opt[] = array( "name" => __("Home blog title", hybrid_get_textdomain()),
							"desc" => __("Input the title of the home blog.", hybrid_get_textdomain()),
							"id" => "home_blog_title",
							"std" => "From the blog",
							"type" => "text");
							
				
		$opt[] = array( "name" => __("Home blog amount", hybrid_get_textdomain()),
							"desc" => __("Posts amount in home blog.", hybrid_get_textdomain()),
							"id" => "home_blog_amount",
							"std" => "10",
							"type" => "select",
							"options" => $entries_amount);	
		
		
		return $opt; 
			
	}			

	add_filter('cv_social_media', 'add_socialmedia_options');	
	function add_socialmedia_options($opt) {	
	
		$opt[] = array( "name" => __("Disable social medias", hybrid_get_textdomain()),
									"desc" => __("Check to disable social medias.", hybrid_get_textdomain()),
									"id" => "sc_disable_socials",
									"std" => false,
									"type" => "checkbox");				
		
		$opt[] = array( "name" => __("Social medias display mode", hybrid_get_textdomain()),
							"desc" => __("Select the social medias display mode.", hybrid_get_textdomain()),
							"id" => "sc_socials_mode",
							"std" => "scroll",
							"type" => "select",
							"options" => array("scroll", "on-hover"));

		return $opt; 
	}	
?>
